package com.shensi.adminCollect.domain.station;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shensi.adminCollect.domain.station.vo.FinanceStatement;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @description finance_statements_station
 * @author
 * @date 2023-07-04
 */
@Getter
@Setter
@ApiModel("finance_statements_station")
@TableName("finance_statement_station")
public class FinanceStatementStation extends FinanceStatement implements Serializable {

    private static final long serialVersionUID = 1L;

    public static FinanceStatementStation of(FinanceStatement statement){
        if (statement == null) {
            return null;
        }
        FinanceStatementStation financeStatementStation = new FinanceStatementStation();
        financeStatementStation.setId(statement.getId());
        financeStatementStation.setStationId(statement.getStationId());
        financeStatementStation.setEnterpriseId(statement.getEnterpriseId());
        financeStatementStation.setCountDate(statement.getCountDate());
        financeStatementStation.setOilPayableAmount(statement.getOilPayableAmount());
        financeStatementStation.setOilDiscountAmount(statement.getOilDiscountAmount());
        financeStatementStation.setOilBalancePaymentAmount(statement.getOilBalancePaymentAmount());
        financeStatementStation.setOilWithdrawalAmount(statement.getOilWithdrawalAmount());
        financeStatementStation.setNotOilPayableAmount(statement.getNotOilPayableAmount());
        financeStatementStation.setNotOilDiscountAmount(statement.getNotOilDiscountAmount());
        financeStatementStation.setNotOilWithdrawalAmount(statement.getNotOilWithdrawalAmount());
        financeStatementStation.setIntegralPayAmount(statement.getIntegralPayAmount());
        financeStatementStation.setChargeAmount(statement.getChargeAmount());
        financeStatementStation.setChargeGiveAmount(statement.getChargeGiveAmount());
        financeStatementStation.setChargeWithdrawalAmount(statement.getChargeWithdrawalAmount());
        financeStatementStation.setQrCodeAmount(statement.getQrCodeAmount());
        financeStatementStation.setQrCodeWithdrawalAmount(statement.getQrCodeWithdrawalAmount());
        financeStatementStation.setCashAmount(statement.getCashAmount());
        financeStatementStation.setIntegralAmount(statement.getIntegralAmount());
        financeStatementStation.setWithdrawalAmount(statement.getWithdrawalAmount());
        financeStatementStation.setCreateBy(statement.getCreateBy());
        financeStatementStation.setCreateTime(statement.getCreateTime());
        financeStatementStation.setUpdateBy(statement.getUpdateBy());
        financeStatementStation.setUpdateTime(statement.getUpdateTime());
        financeStatementStation.setDelFlag(statement.getDelFlag());
        return financeStatementStation;
    }

}
